package com.slm.mylibrary.base;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

/**
 * @ProjectName: My Application
 * @Package: com.slm.mylibrary.base
 * @ClassName: BaseViewmodel
 * @Description: java类作用描述
 * @Author: 王丹丹
 * @CreateDate: 2020/5/29 19:12
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/5/29 19:12
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public abstract class BaseViewModel extends ViewModel {

    /**
     * 是否限制加载框
     */
    public final MutableLiveData<Boolean> isShowLoading = new MutableLiveData<>();
    /**
     * 服务器限制的错误信息
     */
    public final MutableLiveData<String> message = new MutableLiveData<>();


    @Override
    protected void onCleared() {
        super.onCleared();
    }
}
